package com.tanhua.manager.api.db;

import com.tanhua.domain.db.SensitiveWords;
import com.tanhua.mapper.SensitiveWordsMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class SensitiveWordsApiImpl implements SensitiveWordsApi {
    @Autowired
    private SensitiveWordsMapper sensitiveWordsMapper;

    @Override
    public void saveSensitiveWords(SensitiveWords sensitiveWords) {
        sensitiveWordsMapper.insert(sensitiveWords);
    }

    @Override
    public SensitiveWords findById(Long id) {
        return sensitiveWordsMapper.selectById(id);
    }

    @Override
    public void updateSensitiveWords(SensitiveWords sensitiveWords) {
        sensitiveWordsMapper.updateById(sensitiveWords);

    }
}
